<template>
    <div class="app-table">
        <div class="container">
            <!-- <div class="title">退费管理</div> -->
            <div class="header flex">
                <div class="nav_box flex">
                    <div class="nav" @click="active = 0">
                        <p :class="{ 'pNav': active !== 0, 'pNav_actvie': active === 0 }">退费信息</p>
                        <div :class="{ 'xian': active !== 0, 'xian_active': active === 0 }"></div>
                    </div>
                    <!-- <div class="nav" @click="active = 1">
                        <p :class="{ 'pNav': active !== 1, 'pNav_actvie': active === 1 }">饭卡退费</p>
                        <div :class="{ 'xian': active !== 1, 'xian_active': active === 1 }"></div>
                    </div>
                    <div class="nav" @click="active = 2">
                        <p :class="{ 'pNav': active !== 2, 'pNav_actvie': active === 2 }">反馈信息</p>
                        <div :class="{ 'xian': active !== 2, 'xian_active': active === 2 }"></div>
                    </div> -->
                </div>
                <div class="controlBox flex">
                    <!-- <div class="control flex">
                        <img src="../../assets/excel.png" alt="">
                        <p>对比</p>
                    </div>
                    <div class="control flex">
                        <img src="../../assets/excel.png" alt="">
                        <p>添加微信收费</p>
                    </div>
                    <div class="control flex">
                        <img src="../../assets/excel.png" alt="">
                        <p>添加东校区收费</p>
                    </div> -->
                    <div class="control flex" @click="Download">
                        <img src="../../assets/refundExport_icon.png" alt="">
                        <p>导出报表</p>
                    </div>
                </div>
            </div>
            <editRefundListView ref="editRefundListView" />
        </div>
    </div>
</template>
<script>
import editRefundListView from "@/components/payment/editRefundListView.vue";
import { httpService } from "@/utils/httpService";

export default {
    components: { editRefundListView },
    data() {
        return {
            active: 0,
        };
    },
    mounted() { },
    methods: {
        Download() {
            httpService(
                "/javaApi/paymentRefund/exportPaymentRefund",
                {},
                "get"
            ).then((data) => {
                console.log(data);
                // window.open(data.message, "_blank");
                window.open("https://wx.zhengzhong.cn" + data.message, "_blank")
            });
        },
    },
}
</script>
<style scoped>
* {
    margin: 0;
    padding: 0;
}

.flex {
    display: flex;
    align-items: center;
}

.app-table {
    background: #eff3f5;
    padding: 5px 10px 0px;
}

.container {
    background: white;
    padding: 20px 20px 10px 20px;
    margin-bottom: 10px;
    min-height: calc(100vh - 145px);
}

.title {
    font-size: 18px;
    color: #000;
    font-weight: 600;
}

.header { 
    border-bottom: 1px solid #D8D9DB;
    justify-content: space-between; 
}

.nav { 
    margin-right: 40px;
    cursor: pointer;
}

.pNav {
    color: #333333;
    font-size: 15px;
    font-weight: bold;
    white-space: nowrap;
}

.pNav_actvie {
    color: #076AF0;
    font-size: 15px;
    font-weight: bold;
}

.xian {
    height: 3px;
    border-radius: 3px 3px 0 0;
    background-color: transparent;
    margin-top: 9px;
}

.xian_active {
    height: 3px;
    border-radius: 3px 3px 0 0;
    background-color: #076AF0;
    margin-top: 9px;
}

.controlBox {
    padding-bottom: 12px;
}

.controlBox img {
    width: 15px;
    margin-right: 5px;
}

.control {
    margin-left: 30px;
    color: #666E79;
    font-size: 15px;
    cursor: pointer;
    white-space: nowrap;
}
</style>